<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/25
 * Time: 14:28
 */

class goods_type_model extends CI_Model
{
    public function type_option()
    {

        $query = $this->db->from('goods_type')->order_by('enabled DESC,cat_id ASC')->get();

        $suppliers = array();
        foreach ($query->result_array() as $row) {
            $type[$row['cat_id']] = $row['cat_name_zh'];
        }

        return $type;
    }
}